<?php
header('Content-type: text/html; charset=utf-8');
header('Pragma: public');
$exp = 60*60*24*365;
header('Cache-Control: max-age=' . $exp);
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time()+$exp) . '');
setLocale(LC_ALL, 'hu_HU.utf-8', 'Hungarian_Hungary');
define('SERIES_CALENDAR', true);
require "includes/config.php";
require "includes/autoloader.php";
require "libs/Smarty.class.php";
require "includes/functions.php";

getSiteVariables();

$db = new sql('localhost', DB_USER, DB_PASS, DB_NAME);

$settings = new settings();

$error = new Error;

$user = new users;

$p = request_var('page', false);

$page = false;

switch($p){
	default:
		call_page($p);
	break;
	
	case false:
		call_page(DEFAULT_PAGE);
	break;
}
?>